package com.dstz.demo.rest.controller;

import com.dstz.base.api.response.impl.ResultMsg;
import com.dstz.base.rest.BaseController;
import com.dstz.demo.core.manager.LineinfoManager;
import com.dstz.demo.core.model.Lineinfo;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import java.util.List;


/**
 * 所有路线信息 控制器类<br/>
 * @author  aschs
 * </pre>
 */
@RestController
@RequestMapping("/sys/lineinfo")
public class LineinfoController extends BaseController<Lineinfo>{
	@Resource
	private LineinfoManager lineinfoManager;
	
	
	@Override
	protected String getModelDesc() {
		return "所有路线信息";
	}

	@GetMapping("/getLineName")
	public ResultMsg<List<Lineinfo>> getLineName(String lineName) {

//		if(lineName==null){
//
//		}

		List<Lineinfo> data = lineinfoManager.findLineName(lineName);

		return new ResultMsg<List<Lineinfo>>(data);
	}
	   
}
